package com.qdl.rym.system.po;

import com.qdl.rym.base.BaseDTO;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.*;

/**
 * @Description: FileRecord
 * @Author: ChenXueLi
 * @Date: 2019-01-29 10:31
 * 你是一段成熟的代码，要学会自己改bug
 */
@EqualsAndHashCode(callSuper = true)
//@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
@Table(name = "c_file_record")
public class FileRecord extends BaseDTO {

    @ApiModelProperty(value = "文件记录id", name = "fileId")
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @OrderBy("DESC")
    private Integer fileId;

    @ApiModelProperty(value = "文件名称", name = "fileName")
    private String fileName;

    @ApiModelProperty(value = "文件原名称", name = "fileName")
    private String fileOldName;

    @ApiModelProperty(value = "文件地址（相对路径）", name = "filePath")
//    @JsonIgnore
    private String filePath;

    @ApiModelProperty(value = "文件位置", name = "filePosition")
//    @JsonIgnore
    private String filePosition;

    @ApiModelProperty(value = "文件类型", name = "fileType")
    private String fileType;

    @ApiModelProperty(value = "文件大小（字节）", name = "fileSize")
    private Long fileSize;

    @ApiModelProperty(value = "文件的md5值", name = "fileMD5")
    private String fileMd5;
}
